<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<title>{$site_seo_title}</title>
	<base id="headbase" href="__TMPL__/seatsel/" />
	{include file="./tplnew/public/css_weui.html" /}
	<link rel="stylesheet" href="css/style.css?{$suffix}" />
</head>
<body>

<header class="wenew-header wenew-header-green">
	<a href="{:url('seatsel/mine/index')}" class="wenew-header-icon-back"><i class="iconfontzz icon-fanhuijiantou w15"></i>返回</a>
	<div class="wenew-header-title">订单管理</div>
</header>

<div class="weui-content">
<?php
${'active_'.$sort} = 'tabbarhd-blue';
?>
	<div class="wenew-tabbarhd">
		<a class="wenew-tabbarhd__item {$active_0}" href="{:url('seatsel/myOrder/index')}">全部</a>
		<a class="wenew-tabbarhd__item {$active_1}" href="{:url('seatsel/myOrder/index', array('sort'=>1))}">待付款</a>
		<a class="wenew-tabbarhd__item {$active_2}" href="{:url('seatsel/myOrder/index', array('sort'=>2))}">待发货</a>
		<a class="wenew-tabbarhd__item {$active_3}" href="{:url('seatsel/myOrder/index', array('sort'=>3))}">待收货</a>
	</div>
	<div class="weui-tab__bd proinfo-tab-con order-list">
		<div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
<?php
	$seatNum = 0; //数量
?>
			{volist name="orderList" id="vo"}
			<div class="weui-panel weui-panel_access">
				<div class="weui-panel__hd"><span class="order-no"><a href="{:url('seatsel/myOrder/detail', ['orderId'=>$vo['id']])}">单号：{$vo['order_no']}</a></span><span class="zzui-feedtag line-green fr">{$vo['trade_status_show']}</span></div>
				<div class="weui-media-box__bd p10">
					{volist name="orderProductGroup[$vo['id']]" id="vo2"}
					<?php
						$seatNum++;
						$productInfo = $productList[$vo2['pid']];
						$specInfo = $specList[$vo2['spec_id']];
					?>
					<div class="weui-media-box_appmsg ord-pro-list">
						<div class="weui-media-box__hd"><a href="{:url('seatsel/myOrder/detail', ['orderId'=>$vo['id']])}"><img class="weui-media-box__thumb" src="{$productInfo['picurl']}" alt=""></a></div>
						<div class="weui-media-box__bd">
							<h1 class="wefix-media-box__we_title ord-pro-link"><a href="{:url('seatsel/myOrder/detail', ['orderId'=>$vo['id']])}">{$productInfo['name']}</a></h1>
							<p class="weui-media-box__desc"><span>{$specInfo['name']}</span></p>
							<p class="weui-media-box__desc"><span>{$vo2['region_name']}{$vo2['pai']}排{$vo2['zuo']}座</span></p>
							
							<div class="clear mg-t-10">
								<div class="wy-pro-pri fl">¥<em class="num font-15">{$vo2['real_price']}</em></div>
								<div class="pro-amount fr hide"><span class="font-13">数量×<em class="name">{$vo2['buy_num']}</em></span></div>
							</div>
						</div>
					</div>
					{/volist}
				</div>
				<div class="ord-statistics">
					<span>共<em class="num">{$seatNum}</em>件商品，</span>
					<span class="wy-pro-pri">总金额：¥<em class="num font-15">{$vo['total_fee']}</em></span>
					<span>(含运费<b>￥{$vo['delivery_fee']}</b>)</span>
				</div>
				<div class="weui-panel__ft">
					<div class="weui-cell weui-cell_access weui-cell_link oder-opt-btnbox">
						{if condition="$orderInfo['trade_status'] eq 1"}
						<a href="{:url('seatsel/myOrder/detail', ['orderId'=>$vo['id']])}" class="ords-btn-com">付款</a>
						{else /}
						<a href="{:url('seatsel/myOrder/detail', ['orderId'=>$vo['id']])}" class="ords-btn-com">详情</a>
						{/if}
					</div>
				</div>
			</div>
			{/volist}
		</div>
	</div>
</div>

</body>
</html>
